package top.superflow.db.orientdb

import top.superflow.db.api.DBConfiguration
import top.superflow.verify.Ensure

class OrientDBConfiguration (url : String, dbName: String, username : String, password : String) extends DBConfiguration with Ensure{
  
  notEmpty(url, "url should not be null for the database configuration.")
  notEmpty(dbName, "dbName should not be null for the database configuration.")
  notEmpty(username, "username should not be null for the database configuration.")
  notEmpty(password, "password should not be null for the database configuration.")
  
  private val dbUrl = url
  private val dbAdminUser = username
  private val dbAdminPassword = password

  
  def getOptions: Map[String,String] = ???
  def getPassword: String = {
    dbAdminPassword
  }
  def getUrl: String = {
    dbUrl
  }
  def getUsername: String = {
    dbAdminUser
  }

  def getDBName: String = {
    dbName
  }
}